﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UlsStudio.Engine.SqlParsers;

namespace UlsStudio.AppCore
{
    /// <summary>
    /// Info for a section-load. Used by the grid to load a specific section, with associated query.
    /// </summary>
    public class DataLoadInfo
    {
        public DataLoadInfo(int listIndex, SimpleSqlSelectStatementInfo simpleSqlSelectStatementInfo)
        {
            this.Index = listIndex;
            this.ViewQuery = simpleSqlSelectStatementInfo;
        }

        /// <summary>
        /// Row in the dataset to start loading from
        /// </summary>
        public int Index { get; set; }

        /// <summary>
        /// The query used to filter the dataset
        /// </summary>
        public SimpleSqlSelectStatementInfo ViewQuery { get; set; }
    }
}
